// import http from '../http';

class Sd {
  constructor() {}

  test() {
    return http.get('/test/wubuze');
  }

  ecSite(dat) {
    return http.get('/site/ecsites/show');
  }

  ecSiteShow(id) {
    return http.get(`site/ecsites/${id}/show`);
  }

  saveEcSite(id, data) {
    return http.post(`site/ecsites/${id}/save`, data);
  }

  createEcSite(data) {
    return http.post('site/ecsites/create', data);
  }

  //登入
  login(data) {
    return http.post('guest/login', data);
  }

  showUser() {
    return http.get('profile/show');
  }

  //修改用户信息
  saveUser(dat) {
    return http.post('profile/save', dat);
  }

  showMenu = () => {
    return http.get('permission/leftMenu');
  }; 

  

} 

export default new Sd();